<%-- 
    Document   : currentBorrow
    Created on : 2012-4-8, 1:34:14
    Author     : yilee
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page   language= "java" import= "com.bjtu.lms.model.User "%>
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
	User u = (User) request.getSession().getAttribute("user");
	if (u == null) {
		response.sendRedirect("viewBookListAction");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>
			当前借阅
		</title>
		<link rel="stylesheet" type="text/css" href="css/tripoli.simple.css"
			  media="screen, projection, print" />
		<link rel="stylesheet" type="text/css" href="css/layout.css" media="screen, projection, print"
			  />

		<!--[if IE]>
		  <link rel="stylesheet" type="text/css" href="css/ie/ie.css" media="screen, projection, print"
		  />
		<![endif]-->
		<!--[if lt IE 7]>
		  <script src="js/DD_belatedPNG_0.0.7a-min.js" type="text/javascript">
		  </script>
		  <script>
			DD_belatedPNG.fix(' #header, h1, h1 a, .close, .field,.paginate .current, .icon, .required-icon, .search input');
		  </script>
		  <link rel="stylesheet" href="css/ie/ie6.css" type="text/css" media="screen, projection"
		  />
		<![endif]-->
		<script type="text/javascript" src="js/user.js">
		</script>
	</head>

	<body>
		<!-- Header -->
		<div id="header">
			<div class="container content">
				<h1>
					<a href="viewBookListAction">
						图书管理系统
					</a>
				</h1>

				<div class="loginInfos">
					欢迎您
					<strong>
						${user.name}
					</strong>
					.<a href='logout'>退出系统</a>
				</div>
			</div>
		</div>
		<!-- /Header -->
		<!-- Global -->
		<div id="page-content">
			<div class="container content">
				<!-- Sidebar -->
				<div id="sidebar" class="bImg">
					<div class="bInner">
						<span class="bTR">
						</span>
						<span class="bBL">
						</span>
						<ul id="side-nav">
							<li class="inactive">
								<a href="#" title="Posts" class="button">
									<strong>
										<img src="img/newspaper_48.png" alt="comments" class="icon " />
										<span class="title">
											图书馆
										</span>
										<span class="expand expanded">
										</span>
									</strong>
								</a>
								<ul>
									<li>
										<a href="viewBookListAction">
											图书列表
										</a>
									</li>
								</ul>
							</li>

							<li class="active">
								<a href="#" title="Pages" class="button">
									<strong>
										<img src="img/spanner_48.png" alt="comments" class="icon " />
										<span class="title">
											个人信息
										</span>
										<span class="expand">
										</span>
									</strong>
								</a>
								<ul>
									<li  class="active">
										<a href="#">
											当前借阅
										</a>
									</li>
									<li>
										<a href="historyBorrowAction">
											借阅历史
										</a>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
				<!-- /Sidebar -->
				<!-- Content -->
				<div id="content" class="roundedBorders">
					<!-- Title -->
					<div id="title" class="b2">
						<h2>
							图书管理系统
						</h2>
					</div>
					<!-- Title -->
					<!-- Inner Content -->
					<div id="innerContent">

						<hr/>

						<!-- ListTable -->
						<table cellspacing="0" class="listTable" id="postList">
							<!-- Thead -->
							<thead>
								<tr>
									<th class="first">
										<div>
										</div>
									</th>
									<th>
										<a href="#">
											图书名称
										</a>
									</th>
									<th>
										<a href="#" >
											借阅日期
										</a>
									</th>
									<th class="last">
										<a href="#">
											归还日期
										</a>
									</th>
								</tr>
							</thead>
							<!-- /Thead -->
							<!-- Tfoot -->
							<tfoot>

							</tfoot>
							<!-- /Tfoot -->
							<!-- Tbody -->
							<tbody>
								<c:forEach items="${bookList}" var="book" varStatus="i" >
									<tr>
										<td>

										</td>
										<td>
											${book.name}

										</td>
										<td>
											${book.borrowDate}
										</td>

										<td class="last">
											${book.returnDate}
										</td>
									</tr>
								</c:forEach>
							</tbody>
							<!-- /Tbody -->
						</table>

					</div>
					<!-- /Inner Content -->
					<div class="bBottom">
						<div>
						</div>
					</div>
				</div>
				<!-- /Content -->
				<!-- Dialog boxes -->
				<!-- /Content -->
				<div id="viewBookDetail">
					<div class="content" id="bookDetailContent">
					</div>
				</div>
				<!-- /Dialog boxes -->
			</div>
		</div>
		<script type="text/javascript" src="js/jquery.min.js">
		</script>
		<script type="text/javascript" src="js/jquery-ui-1.7.custom.min.js">
		</script>
		<script type="text/javascript" src="js/jquery.bgiframe.min.js">
		</script>
		<script type="text/javascript" src="js/jquery.dimensions.js">
		</script>
		<script type="text/javascript" src="js/jquery.tooltip.min.js">
		</script>
		<script type="text/javascript" src="js/jquery.tablesorter.min.js">
		</script>
		<script type="text/javascript" src="js/titanium.js">
		</script>
		<script type="text/javascript" src="js/jquery.skygqbox.1.3.js"></script>
	</body>

</html>
